﻿using Avalon.Core.MVC.Attributes;

namespace Avalon.Core.Data.Templates {
    public class AvalonEntityField : BaseAuditableEntity {
        public string Title { get; set; }
        public string Name { get; set; }
        public string GroupName { get; set; }
        public int Order { get; set; }
        public RenderMode RenderMode { get; set; }
        public FieldType FieldType { get; set; }
        public bool IsParent { get; set; }
        public bool IsChildCollection { get; set; }
        public bool IsIEntity { get; set; }
        public string AssemblyQualifiedName { get; set; }

        [Parent]
        public virtual AvalonEntity Entity { get; set; }
    }
}
